﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.IO;

namespace RRRSRoguelikeData
{
    public class CreatureData
    {
        public int Hits;

        public static CreatureData ReadCreatureDataFromXML(string filepath)
        {
            CreatureData tileData = new CreatureData();

            XmlSerializer TileSerializer = new XmlSerializer(typeof(TileData));

            FileStream TileFileStream = new FileStream(filepath, FileMode.Open, FileAccess.Read);

            tileData = (CreatureData)TileSerializer.Deserialize(TileFileStream);

            return tileData;

        }
    }
}
